﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anke.SHManage.Model.BasicEventInfo
{
    [Table(Name = "TAmbulanceStateTime")]
    public class AmbulanceStateTimeInfo
    {
        private int m_Code;//编码
        [Column(IsPrimaryKey = true, Name = "编码", DbType = "int", Storage = "m_Code")]
        public int Code
        {
            get { return m_Code; }
            set { m_Code = value; }
        }

        private string m_AmbuCode;//车辆编码
        [Column(Name = "车辆编码", DbType = "char(5)", Storage = "m_AmbuCode", UpdateCheck = UpdateCheck.Never)]
        public string AmbuCode
        {
            get { return m_AmbuCode; }
            set { m_AmbuCode = value; }
        }

        private string m_TaskCode;//任务编码
        [Column(Name = "任务编码", DbType = "char(20)", Storage = "m_TaskCode", UpdateCheck = UpdateCheck.Never)]
        public string TaskCode
        {
            get { return m_TaskCode; }
            set { m_TaskCode = value; }
        }

        private int m_WorkStateId;//车辆状态编码
        [Column(Name = "车辆状态编码", DbType = "int", Storage = "m_WorkStateId", UpdateCheck = UpdateCheck.Never)]
        public int WorkStateId
        {
            get { return m_WorkStateId; }
            set { m_WorkStateId = value; }
        }

        private Nullable<DateTime> m_KeyPressTime;//时刻值
        [Column(Name = "时刻值", Storage = "m_KeyPressTime", UpdateCheck = UpdateCheck.Never)]
        public Nullable<DateTime> KeyPressTime
        {
            get { return m_KeyPressTime; }
            set { m_KeyPressTime = value; }
        }

        private Nullable<DateTime> m_SaveTime;//记录时刻
        [Column(Name = "记录时刻", Storage = "m_SaveTime", UpdateCheck = UpdateCheck.Never)]
        public Nullable<DateTime> SaveTime
        {
            get { return m_SaveTime; }
            set { m_SaveTime = value; }
        }

        private int m_SourceCode;//操作来源编码
        [Column(Name = "操作来源编码", DbType = "int", Storage = "m_SourceCode", UpdateCheck = UpdateCheck.Never)]
        public int SourceCode
        {
            get { return m_SourceCode; }
            set { m_SourceCode = value; }
        }

        private string m_OperationCode;//操作员编码
        [Column(Name = "操作员编码", DbType = "char(5)", Storage = "m_OperationCode", UpdateCheck = UpdateCheck.Never)]
        public string OperationCode
        {
            get { return m_OperationCode; }
            set { m_OperationCode = value; }
        }

        private bool m_IsOnline;//是否在线
        [Column(Name = "车辆是否在线", DbType = "bit", Storage = "m_IsOnline", UpdateCheck = UpdateCheck.Never)]
        public bool IsOnline
        {
            get { return m_IsOnline; }
            set { m_IsOnline = value; }
        }
    }
}
